package com.resource.transactions.entities;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.solr.client.solrj.beans.Field;
import org.springframework.data.solr.core.mapping.SolrDocument;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("r_resource")
@SolrDocument(collection = "new_core")
public class RResource  implements Serializable {

    @TableId(type = IdType.AUTO)
    @Field("resource_id")
    private Integer resourceid;
    @Field("resource_name")
    private String resourcename;
    @Field("resource_path")
    private String resourcepath;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Field("resource_datetime")
    private Date resourcedatetime;
    @Field("resource_typeid")
    private Integer typeid;
    @Field("resource_userid")
    private Integer userid;


}
